/*
* Poppy Game Engine - https://pgetemplate.googlecode.com/svn/
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* Copyright (c) 2008 Poppy
*/

inline void CRefObject::AddRef()
{
	m_uiRefCount ++;
}

inline void CRefObject::Release()
{
	m_uiRefCount --;
	if(m_uiRefCount == 0)
		DeleteThis();
}

inline void CRefObject::DeleteThis()
{
	PGEDelete this;
}
